Make:Use "simply expanded" make variables.
authorEvan Lloyd <[email protected]>
Thu, 3 Dec 2015 09:47:51 +0000 (09:47 +0000)
committerEvan Lloyd <[email protected]>
Fri, 1 Apr 2016 11:33:09 +0000 (12:33 +0100)
Replace some "recursively expanded" make variables with "simply
expanded" variables (i.e. replace = with :=). This has no functional
impact but is more consistent and theoretically more efficient.

Change-Id: Iaf33d7c8ad48464ae0d39923515d1e7f230c95c1

Makefile
tools/fip_create/Makefile

index 1eb0174d259487a25beb3e4d78f797f1420a0855..c20bf912aeb631416ac38cf239ae73e2efddd3e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -125,10 +125,10 @@ CHECK_PATHS               :=      ${ROOT_DIRS_TO_CHECK} ${INCLUDE_DIRS_TO_CHECK} ${LIB_DIRS_TO_CHE
 
 # Verbose flag
 ifeq (${V},0)
-        Q=@
+        Q:=@
         CHECKCODE_ARGS +=      --no-summary --terse
 else
-        Q=
+        Q:=
 endif
 export Q
 
index da993024fe1dc7a4a0d7d92e99240b8ea244c20a..b12e063848425e09e7ca050c198f03599f9d5948 100644 (file)
@@ -32,11 +32,11 @@ MAKE_HELPERS_DIRECTORY := ../../make_helpers/
 include ${MAKE_HELPERS_DIRECTORY}build_macros.mk
 include ${MAKE_HELPERS_DIRECTORY}build_env.mk
 
-PROJECT = fip_create
-OBJECTS = fip_create.o
+PROJECT := fip_create
+OBJECTS := fip_create.o
 COPIED_H_FILES := uuid.h firmware_image_package.h
 
-CFLAGS = -Wall -Werror -pedantic -std=c99
+CFLAGS := -Wall -Werror -pedantic -std=c99
 ifeq (${DEBUG},1)
   CFLAGS += -g -O0 -DDEBUG
 else
@@ -44,7 +44,7 @@ else
 endif
 
 # Only include from local directory (see comment below).
-INCLUDE_PATHS = -I.
+INCLUDE_PATHS := -I.
 
 CC := gcc